/**   
 * @ClassName: AbstractController.java 
 * @Package com.vrv.controller.base 
 * @author LQ   
 * @date 2017年4月8日 上午6:51:41 
 * @version V1.0
 */
package com.vrv.controller.base;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.vrv.user.model.User;
import com.vrv.util.ShiroUtils;


/** 
 * AbstractController:Controller公共组件
 * @author LQ 
 */
public abstract class AbstractController {
    
protected Logger logger = LoggerFactory.getLogger(getClass());
    
    protected User getUser() {
        return ShiroUtils.getUser();
    }

    protected Integer getUserCode() {
        return getUser().getUserCode();
    }
    
}
